package com.zhou.mymvpdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.zhou.mymvpdemo.Utils.CheckUtils;
import com.zhou.mymvpdemo.contract.ContractViewAndPresenter;
import com.zhou.mymvpdemo.impcontract.DetailPrensenter;

public class MainActivity extends AppCompatActivity implements ContractViewAndPresenter.View  {

    private TextView tv;
    private ContractViewAndPresenter.Presenter mPresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv = (TextView) findViewById(R.id.tv);
        tv.setText("woshi yingxing ");
        /*这里绑定具体的presenter*/

        DetailPrensenter taskPrensenter=new DetailPrensenter(this);


    }


    @Override
    public void setPresenter(ContractViewAndPresenter.Presenter presenter) {
        mPresenter = CheckUtils.checkNotNull(presenter);

    }
}
